package com.vhall.component.controller.rebroadcast;

import com.alibaba.fastjson.JSONObject;
import com.vhall.component.entity.rebroadcast.vo.ListReqVo;
import com.vhall.component.entity.rebroadcast.vo.PreviewReqVo;
import com.vhall.component.entity.rebroadcast.vo.PreviewRspVo;
import com.vhall.component.entity.rebroadcast.vo.StartReqVo;
import com.vhall.component.framework.common.annotation.VhallComponent;
import com.vhall.component.plugin.common.annotation.VssTokenAuth;
import com.vhall.component.service.rebroadcast.RebroadCastService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

/**
 * @author xianglei
 * @date 2021/6/16 11:00
 */
@VhallComponent
@VssTokenAuth
public class RebroadCastController implements RebroadCastFacade {

    @Autowired
    private RebroadCastService rebroadcast;

    @Override
    public Boolean start(StartReqVo reqVO) {

        return rebroadcast.start(reqVO);
    }

    @Override
    public JSONObject stop(StartReqVo reqVO) {

        return rebroadcast.stop(reqVO);
    }

    @Override
    public Map<String, Object> lists(ListReqVo reqVO) {

        return rebroadcast.list(reqVO);
    }

    @Override
    public PreviewRspVo preview(PreviewReqVo reqVO) {

        return rebroadcast.preview(reqVO);
    }


}
